package org.smarthings.things.management.rest.impl;

import java.net.URI;

import org.osgi.service.component.ComponentContext;
import org.osgi.service.event.Event;
import org.osgi.service.event.EventHandler;

public class ThingEventHandler implements EventHandler {

	@SuppressWarnings("unused")
	private URI callback;

	public ThingEventHandler(URI callback, String filter, String[] topics) {
		this.callback = callback;
	}

	@Override
	public void handleEvent(Event arg0) {
		// TODO find the resource of interest!
		// TODO serialize resource and post content to callback!

	}

	public void register(ComponentContext context) {

	}

	public void unregister(ComponentContext context) {

	}

}
